com.micromegacorp.math.v3_spi
Class Math32

java.lang.Object
  extended by com.micromegacorp.math.v3_spi.Math32

public class Math32
extends java.lang.Object


Constructor Summary
Math32()
           
 
Method Summary
static com.micromegacorp.math.v3_spi.Float32 add(com.micromegacorp.math.v3_spi.Float32 a, com.micromegacorp.math.v3_spi.Float32 b)
          Add two Float32 values.
protected static com.micromegacorp.math.v3_spi.Float32 command1(int opcode, com.micromegacorp.math.v3_spi.Float32 fnum)
           
static com.micromegacorp.math.v3_spi.Float32 cos(com.micromegacorp.math.v3_spi.Float32 angle)
          Returns the trigonometric cosine of an angle.
static com.micromegacorp.math.v3_spi.Float32 divide(com.micromegacorp.math.v3_spi.Float32 a, com.micromegacorp.math.v3_spi.Float32 b)
          Divides a Float32 value by another.
static com.micromegacorp.math.v3_spi.Float32 multiply(com.micromegacorp.math.v3_spi.Float32 a, com.micromegacorp.math.v3_spi.Float32 b)
          multiplies two Float32 values.
static com.micromegacorp.math.v3_spi.Float32 sin(com.micromegacorp.math.v3_spi.Float32 angle)
          Returns the trigonometric sine of an angle.
static com.micromegacorp.math.v3_spi.Float32 subtract(com.micromegacorp.math.v3_spi.Float32 a, com.micromegacorp.math.v3_spi.Float32 b)
          Subtracts two Float32 values.
static com.micromegacorp.math.v3_spi.Float32 tan(com.micromegacorp.math.v3_spi.Float32 angle)
          Returns the trigonometric tangent of an angle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Math32

public Math32()
Method Detail

add

public static com.micromegacorp.math.v3_spi.Float32 add(com.micromegacorp.math.v3_spi.Float32 a,
                                                        com.micromegacorp.math.v3_spi.Float32 b)
Add two Float32 values. Returns a + b.

Parameters:
a - Float32 value.
b - Float32 value.
Returns:
Float32 reference to result.

subtract

public static com.micromegacorp.math.v3_spi.Float32 subtract(com.micromegacorp.math.v3_spi.Float32 a,
                                                             com.micromegacorp.math.v3_spi.Float32 b)
Subtracts two Float32 values. Returns a - b.

Parameters:
a - Float32 value.
b - Float32 value.
Returns:
Float32 reference to result.

multiply

public static com.micromegacorp.math.v3_spi.Float32 multiply(com.micromegacorp.math.v3_spi.Float32 a,
                                                             com.micromegacorp.math.v3_spi.Float32 b)
multiplies two Float32 values. Returns a * b.

Parameters:
a - Float32 value.
b - Float32 value.
Returns:
Float32 reference to result.

divide

public static com.micromegacorp.math.v3_spi.Float32 divide(com.micromegacorp.math.v3_spi.Float32 a,
                                                           com.micromegacorp.math.v3_spi.Float32 b)
Divides a Float32 value by another. Returns a / b.

Parameters:
a - Float32 value.
b - Float32 value.
Returns:
Float32 reference to result.

sin

public static com.micromegacorp.math.v3_spi.Float32 sin(com.micromegacorp.math.v3_spi.Float32 angle)
Returns the trigonometric sine of an angle. Special cases:

Parameters:
angle - angle in radians
Returns:
Float32 reference to sine of the angle

cos

public static com.micromegacorp.math.v3_spi.Float32 cos(com.micromegacorp.math.v3_spi.Float32 angle)
Returns the trigonometric cosine of an angle. Special cases:

Parameters:
angle - angle in radians
Returns:
Float32 reference to cosine of the angle

tan

public static com.micromegacorp.math.v3_spi.Float32 tan(com.micromegacorp.math.v3_spi.Float32 angle)
Returns the trigonometric tangent of an angle. Special cases:

Parameters:
angle - angle in radians
Returns:
Float32 reference to tangent of the angle

command1

protected static com.micromegacorp.math.v3_spi.Float32 command1(int opcode,
                                                                com.micromegacorp.math.v3_spi.Float32 fnum)